<section class="last">
	<?php if(isset($page)):?>
		<h3><?php echo ($page['Category']['name'])?></h3>
		<p><?php echo ($page['Category']['description'])?></p>
	<?php endif;?>
	
	<?php if(isset($id_cat)):?>
	<ul class="link-list">
					
	<?php 
		$subcats = $this->requestAction('pages/getSubCats?idcat='.$id_cat);
		foreach ($subcats as $subcat):
	?>
		<li <?php if(isset($id_sub_cat) && $id_sub_cat == $subcat['Category']['id']) echo 'class="current_page_item"'?>>
			<?php 
			echo $this->Html->link(
				$subcat['Category']['name'],  
				array(
					'controller' => 'pages', 
					'action' => 'category',
					$subcat['Category']['name'],
					$subcat['Category']['id_parent'],
					$subcat['Category']['id']
				));
			?>
		</li>
	<?php endforeach; ?>
	</ul>
	<?php endif;?>
</section>